Package eu.europa.ec.taxud.cesop.domain
Enum Class MessageTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<MessageTypeEnum>,java.lang.constant.Constable
Enum for the CESOP payment data message types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageTypeEnumfindByLabel(String label) Find aMessageTypeEnumby its label.getLabel()Gets label.booleanRetrieves whether the check for business rules is enabled by default.static MessageTypeEnumReturns the enum constant of this class with the specified name.static MessageTypeEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PMT
The message type is 'Payment data' (or 'No Payment data'). -
VLD
The message type is 'Validation result message'. -
PNG
The message type is 'Ping Message'.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getLabel
Gets label.- Returns:
- the label
-
findByLabel
Find aMessageTypeEnumby its label.- Parameters:
label- the label- Returns:
- the
MessageTypeEnum - Throws:
IllegalArgumentException- if there is no value for the label
-
isBusinessRulesCheckEnabled
public boolean isBusinessRulesCheckEnabled()Retrieves whether the check for business rules is enabled by default.- Returns:
- true if the check for business rules is enabled by default, false otherwise.
-